package com.happycat.mobile.model;
 
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * Module: UserPosting.java
 *
 * @author liaoyong
 * @since JDK 1.8
 * @version 1.0
 * @date 2020-07-29
 * @Descriptions:
 */
@Data
@TableName(value = "user_posting")
@ApiModel
public class UserPosting  {
	
	

	@TableId(value = "id", type = IdType.INPUT)
	@ApiModelProperty(value="id")
	private Long id;
	
	
	@ApiModelProperty(value="内容")
	@TableField("content")
	private String content;
	
	
	@ApiModelProperty(value="标题")
	@TableField("title")
	private String title;
	
	
	@ApiModelProperty(value="帖子类型,1:动态消息，2：评论，3：点赞")
	@TableField("type")
	private Integer type;
	
	@ApiModelProperty(value="帖子类型,1:图文，2：视频，3：投票")
	private Integer category;
	
	@ApiModelProperty(value="帖子发送人的账号id")
	@TableField("account_id")
	private Long accountId;
	
	@ApiModelProperty(value="圈子id")
	@TableField("circle_id")
	private Long circleId;
	
	@ApiModelProperty(value="圈子被评论或点赞的帖子id")
	@TableField("parent_id")
	private Long parentId;
	
	@ApiModelProperty(value="圈子被评论或点赞的话题id")
	@TableField("topic_id")
	private Long topicId;
	
	@ApiModelProperty(value="发送时间",example = "2020-01-01T12:18:48")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@TableField("send_time")
	private Date sendTime;
	
	@ApiModelProperty(value="点赞数")
	@TableField(exist = false)
	private Integer likeCount;
	
	@ApiModelProperty(value="评论数")
	@TableField(exist = false)
	private Integer commentCount;
	
	@ApiModelProperty(value="图片消息路径")
	@TableField("photo_message_path")
	private Integer photoMessagePath;
	
	@TableField(exist = false)
	@ApiModelProperty(value="发送帖子的用户信息")
	private UserAccount userAccount;
	

	@TableField(exist = false)
	@ApiModelProperty(value="圈子信息")
	private CatCircle catCircle;
	
	@TableField(exist = false)
	@ApiModelProperty(value="当前用户对帖子的点赞状态")
	private int status;
	
	@ApiModelProperty(value="当前登录用户的id")
	@TableField(exist = false)
	private Long currentAccountId;
	
	@TableField(exist = false)
	@ApiModelProperty(value="热议话题")
	private CatTopic catTopic;
}